<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    var nums = [1, 2, 3, 4, 0, 10]
    //从小到大进行排序
    nums.sort((a, b) => a - b)
    const n = nums.length;
    //获取最大的三个数之和
    let str = nums[n - 1] * nums[n - 2] * nums[n - 3]

    console.log(str)
  </script>
</body>

</html>